f59b7b304637e7891c46f85337175f9921b2ca70,java/debugger/impl/src/com/intellij/debugger/ui/breakpoints/LineBreakpoint.java,LineBreakpoint,createRequestForPreparedClass,#DebugProcessImpl#ReferenceType#,143
Before Change
});
Location location = null;
for (Location loc : locations) {
if (location == null || location.codeIndex() > loc.codeIndex()) {
location = loc;
}
}
After Change
try {
List<Location> locations = debugProcess.getPositionManager().locationsOfLine(classType, getSourcePosition());
if (!locations.isEmpty()) {
for (Location loc : locations) {
if (LOG.isDebugEnabled()) {
LOG.debug("Found location [codeIndex=" + loc.codeIndex() +"] for reference type " + classType.name() + " at line " + getLineIndex() + "; isObsolete: " + (debugProcess.getVirtualMachineProxy().versionHigher("1.4") && loc.method().isObsolete()));
}
if (!acceptLocation(debugProcess, classType, loc)) {
continue;